import java.util.Scanner;

public class work02 {

	public static void main(String[] args) {
		/*
		 * 2）数组查找操作：定义一个长度为10 的一维字符串数组，在每一个元素存放一个单词；
		 * 然后运行时从命令行输入一个单词，程序判断数组是否包含有这个单词，包含这个单词就打印出“Yes”，不包含就打印出“No”。
		 */
		 Scanner input=new Scanner(System.in);
         System.out.print("请输入需要查找的单词：");
         String work=input.next();
         String fruits[]={"pear","banana","apple","mango","pitaya","watermelon","grape","peach","strawberry","cherry"};
         boolean flag = false;
         for (int i = 0; i < fruits.length; i++) {
			if(work.equalsIgnoreCase(fruits[i])) {
				flag=true;
				break;
			}
		}
         if(flag) {
        	 System.out.println("YES");
         }else {
        	 System.out.println("No");
         }
	}

}
